<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .title{
            display: flex;
            justify-content: space-between;
            padding: 20px;
        }
        .title .left{
            font-weight: 800;
        }
        .item {
            padding: 0 20px;
            display: flex;
            margin-bottom: 10px;
            align-items: center;
            justify-content: space-between;
        }
        .item .left{
            display: flex;
        }
        .item .left img{
            width: 80px;
            height: 80px;
        }
        .item .left .you{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            margin-left: 10px;
        }
        .item .left .you .name{
            font-size: 14px;       
            font-weight: 800; 
        }
        .item .left .you .xianjia{
            color: rgb(250, 62, 62);
        }
        .item .left .you .yuanjia{
            color:gray;
            font-size: 13px;
            text-decoration:line-through;
        }
        .item .right{
            display: flex;
        }
        button{
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 0;
            text-align: center;
            line-height: 15px;
            margin-left: 10px;
            font-weight: 800;
        }
        .jian{
            color: blueviolet;
            border: 1px solid blueviolet;
            margin-right: 10px;
            background-color: white;
        }
        .jia{
            color: white;
            background-color: blueviolet;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="title">
            <div class="left">已选商品</div>
            <div class="right">清空</div>
        </div>
        <div class="list">
            <div class="item" v-for="(item,index) in tasklist" v-bind:key="index">
                <div class="left">
                    <div class="zuo">
                        <img v-bind:src="item.pic" alt="">
                    </div>
                    <div class="you">
                        <div class="name">{{ item.name }}</div>
                        <div class="jiage"><span class="xianjia">￥ {{ item.xianjia }}</span> <span class="yuanjia">￥{{ item.yuanjia }}</span></div>
                    </div>
                </div>
                <div class="right">
                    <button class="jian">-</button>
                    <div>{{ item.shuliang }}</div>
                    <button class="jia">+</button>
                </div>
            </div>
        </div> 
    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el: '#app',
        data: {
            tasklist: [
                { id: 1, pic: './img/3.png', name: '秋刀鱼/斤', xianjia: '35.00', yuanjia: '35', shuliang: 1 },
                { id: 2, pic: './img/3.png', name: '新鲜带鱼/条', xianjia: '45.00', yuanjia: '45', shuliang: 1 },
                { id: 3, pic: './img/3.png', name: '皮皮虾/斤', xianjia: '85.00', yuanjia: '85', shuliang: 1 },
                { id: 4, pic: './img/3.png', name: '鲍鱼/只', xianjia: '00.00', yuanjia: '35', shuliang: 1 },
            ]
        }
    })
</script>